import axios from 'axios';

const API_BASE_URL = 'http://114.55.138.69:5000/api'

export const getAppeals = async (userId) => {
    try {
        const response = await axios.get(`${API_BASE_URL}/appeals/${userId}`);
        return response.data.appealed_events;
    } catch (error) {
        console.error("Error fetching appealed events:", error);
        throw error;
    }
};
